package jp.ne.hatena.d.digitalsoul.warikan.inject

import com.google.inject._

object Injector {
	
	private var _config:AbstractModule = _
	
	def config_= (config:AbstractModule) { _config = config }
	
	def getInstance[T](clazz:Class[T]):T = {
		Guice.createInjector(_config).getInstance(clazz)
	}

}